<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" namespace="Northwind" assembly="NHibernate.Class">
    <class name="Northwind.Category, NHibernate.Class" table="[dbo].[Categories]" lazy="true">
        <id name="CategoryID" type="Int32">
            <column name="CategoryID" not-null="false" unique="true" />
            <generator class="native" />
        </id>
        <property name="CategoryName" type="String">
            <column name="CategoryName" length="15" not-null="true" />
        </property>
        <property name="Description" type="String">
            <column name="Description" length="1073741823" not-null="false" />
        </property>
        <property name="Picture" type="BinaryBlob">
            <column name="Picture" not-null="false" />
        </property>
        <bag name="Products" lazy="true" inverse="true" cascade="all-delete-orphan">
            <key column="CategoryID" />
            <one-to-many class="Product" />
        </bag>
    </class>
</hibernate-mapping>

